<?php $this->fetch('public/head') ?>
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">编辑内容</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form form-container" action="" method="post">
               
                <div class="layui-form-item">
                    <label class="layui-form-label">文章1</label>
                    <div class="layui-input-block">
                        <textarea  name="content[tit1]" placeholder="文章内容最多只显示前290字" class="layui-textarea"><?php echo $rows['content']['tit1'] ?></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">图片1</label>
                    <div class="layui-upload">
                        <input type="text" name="content[img_url1]" value="<?php echo $rows['content']['img_url1'] ?>" class="layui-input layui-input-inline">
                        <button type="button" class="layui-btn _img_url"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                        <img class="layui-upload-img" src="<?php echo $rows['content']['img_url1'] ?>" height="38" data-expander='default,diamond,turn3d,flip3d,rotate,fade'>
                        仅允许上传jpg,png,gif,jpeg格式，推荐尺寸500*350
                    </div>
                </div>

                    <div class="layui-form-item">
                    <label class="layui-form-label">文章2</label>
                    <div class="layui-input-block">
                        <textarea  name="content[tit2]" placeholder="文章内容最多只显示前290字" class="layui-textarea"><?php echo $rows['content']['tit2'] ?></textarea>
                    </div>
                </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">图片2</label>
                        <div class="layui-upload">
                            <input type="text" name="content[img_url2]" value="<?php echo $rows['content']['img_url2'] ?>" class="layui-input layui-input-inline">
                            <button type="button" class="layui-btn _img_url"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                            <img class="layui-upload-img" src="<?php echo $rows['content']['img_url2'] ?>" height="38" data-expander='default,diamond,turn3d,flip3d,rotate,fade'>
                            仅允许上传jpg,png,gif,jpeg格式,推荐尺寸500*350
                        </div>
                    </div>
                    
                    

                    
                <div class="layui-form-item">
                    <label class="layui-form-label">发布时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="add_time" value="<?php echo $rows['add_time']?:date('Y-m-d H:i:s') ?>" class="layui-input datetime">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $this->fetch('public/script') ?>